package com.lagou.dao;

import com.lagou.pojo.User;
import java.util.List;

public interface IUserDao {

    /**
     * 查询所有用户
     * @return
     * @throws Exception
     */
    public List<User> findAll() throws Exception;

    /**
     * 根据条件进行用户查询
     */
    public User findByCondition(User user) throws Exception;

    /**
     * 逐渐删除
     * @param id
     * @return
     */
    int deleteById(Integer id);

    /**
     * 修改
     * @param user
     * @return
     */
    int updateUser(User user);
}
